import '@tarojs/async-await'
import { createLogger } from 'redux-logger';

import { init } from '@rematch/core'
import createLoadingPlugin from '@rematch/loading'
import * as models from "./models";


const options = {};

const loading = createLoadingPlugin(options);

// const dvaApp = dva.createApp({
//     initialState: {},
//     models: models,
// });

const store = init({
    models: models,
    redux: {
        middlewares: [createLogger()],
    },
    plugins: [loading]
});

export default store;